package cn.wp.common.core.web;

import cn.wp.common.core.authentication.AuthenticationInfo;

public class WpUserContext {
    private static ThreadLocal<AuthenticationInfo> contextThreadLocal = new ThreadLocal<>();

    public static void set(AuthenticationInfo authenticationInfo) {
        contextThreadLocal.set(authenticationInfo);
    }

    public static AuthenticationInfo get(){
        return contextThreadLocal.get();
    }

    public static void remove(){
        contextThreadLocal.remove();
    }


}
